[VERSN2]
watermark "Mod made by YochiThMaster333"

// This is required for custom addon generic parts (wheels or spoilers; all NFS games) and/or custom addon vector vinyls (Carbon, ProStreet, Undercover). Without it, custom wheels and vector vinyls might cause many issues to your game (most notably the game crash)
speedreflect auto

// Checks if FrontB.lzc file has been modified with TexEd
if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
do
update_collection FRONTEND\FRONTB.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
else
end

add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES CARSELECT_MANUFACTURER_HDT CARSELECT_MANUFACTURER_HDT "HDTParts\CARSELECT_MANUFACTURER_HDT.dds"
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COMMODORE85 SECONDARY_LOGO_COMMODORE85 "HDTParts\SECONDARY_LOGO_COMMODORE85.dds"
bind_textures synchronize FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES "HDTParts\TuningIcons"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CARNAME_HDT_COMMODORE85 "1985 HDT Commodore Group A"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_TRUNK_ALFA145_1 "Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_TRUNK_ALFA145_2 "Debadged"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_TRUNK_ALFA145_3 "Carbon Debadged"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HDLGT_ALFA145_1 "Eyelids"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MIRROR_COMMO85_1 "Painted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MIRROR_COMMO85_2 "Carbon"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_ALFA145_1 "Forza"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_COMMO85_1 "C-West GT Wing"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODY_FORZA "Forza"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_1 "Sparco Roadster"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_2 "Sparco Milano 2"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_3 "Sparco Milano 3"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_4 "Sparco Torino"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_5 "Sparco Monza"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_6 "Sparco Modena"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_7 "Sparco Siena"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_8 "UNP Brand"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_9 "UNP Extreme"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_10 "UNP Classic"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_STEER_NISSANBE1_1 "Sparco Flash 5"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_STEER_NISSANBE1_2 "Sparco Faster"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_HONCRX_0 "No Roll Cage"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_HONCRX_1 "Chrome"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_HONCRX_2 "Painted"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MUFFLER_NFSUC_1 "Borillo Pro 30"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MUFFLER_NFSUC_2 "Borillo Pro 40"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MUFFLER_NFSUC_3 "Borillo Pro 50"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MUFFLER_NFSUC_4 "Borillo Pro 60"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MUFFLER_NFSUC_5 "Borillo Pro 70"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_VINYLS_COMMO85_1 "The Crew 2 Tribal"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_VINYLS_COMMO85_2 "The Crew 2 Tiger"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_VINYLS_COMMO85_3 "The Crew 2 Dragon"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMCAGE "Roll Cage"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMSEATS "Seats"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMSTEER "Steering Wheel"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMMUFFLER "Muffler Tip"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMTRUNK "Rear Trunk"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_NISSANBE1_SEATS_1 "Unlock these seats by beating^Sonny, Blacklist member 15."
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_NISSANBE1_SEATS_2 "Unlock these seats by beating^Big Lou, Blacklist member 11."
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_NISSANBE1_STEER_1 "Unlock this steering wheel by beating^Big Lou, Blacklist member 11."
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_NISSANBE1_CAGE_1 "Unlock this roll cage by beating^Kaze, Blacklist member 7."
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_NISSANBE1_MIRRORS_1 "Unlock these side mirrors by beating^Big Lou, Blacklist member 11."

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_COMMO85_MUFFLER_1 "Unlock this muffler tip by beating^Sonny, Blacklist member 15."
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_COMMO85_MUFFLER_2 "Unlock this muffler tip by beating^Izzy, Blacklist member 12."
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_COMMO85_MUFFLER_3 "Unlock this muffler tip by beating^Kaze, Blacklist member 7."

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_COMMO85_HEADLIGHTS_1 "Unlock these headlights by beating^Sonny, Blacklist member 15."
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_COMMO85_SPOILER_1 "Unlock this spoiler by beating^Sonny, Blacklist member 15."
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_COMMO85_SPOILER_2 "Unlock this spoiler by beating^Izzy, Blacklist member 12."
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO UNLOCKMSG_COMMO85_TRUNK_1 "Unlock this trunk by beating^Big Lou, Blacklist member 11."

// Those files are actually unloaded to save RAM, so don't worry ^^
delete FRONTEND\FRONTB.LZC
delete LANGUAGES\ENGLISH.BIN

if collection_exists GLOBAL\GLOBALB.LZC CarTypeInfos COMMODORE85
do
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos COMMODORE85
else
end

if collection_exists GLOBAL\GLOBALB.LZC Collisions COMMODORE85
do
remove_collection GLOBAL\GLOBALB.LZC Collisions COMMODORE85
else
end

copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos CTS COMMODORE85
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos COMMODORE85 ManufacturerName HDT
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos COMMODORE85 DefaultBasePaint COMMODORE85_PAINT_BLUE
copy_collection GLOBAL\GLOBALB.LZC Collisions CTS COMMODORE85
import override GLOBAL\GLOBALB.LZC DBModelParts HDTParts\COMMODORE85.bin

if directory_exists absolute CARS\COMMODORE85
do
else
create_folder absolute CARS\COMMODORE85
end

move_file override relative absolute Main\GEOMETRY.BIN CARS\COMMODORE85\GEOMETRY.BIN
move_file override relative absolute Main\TEXTURES.BIN CARS\COMMODORE85\TEXTURES.BIN

move_file override relative absolute HDTParts\COMMODORE85.ini scripts\UnlimiterData\COMMODORE85.ini

combobox "Standard Resolution (512x)" "High Resolution (1024x)" "Choose vinyls resolution."

"Standard Resolution (512x)"
move_file override relative absolute Vinyls\512.BIN CARS\COMMODORE85\VINYLS.BIN

"High Resolution (1024x)"
move_file override relative absolute Vinyls\1024.BIN CARS\COMMODORE85\VINYLS.BIN

end

combobox "Blue" "Red" "Silver" "White" "Choose your stock color."

"Blue"
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos COMMODORE85 DefaultBasePaint COMMODORE85_PAINT_BLUE

"Red"
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos COMMODORE85 DefaultBasePaint COMMODORE85_PAINT_RED

"Silver"
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos COMMODORE85 DefaultBasePaint COMMODORE85_PAINT_SILVER

"White"
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos COMMODORE85 DefaultBasePaint COMMODORE85_PAINT_WHITE

end
